﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using FwProject.ShoppingMall.Product;

namespace FwProject.Product.Dto
{
    /// <summary>
    /// 商品 属性模型
    /// </summary>
    [AutoMap(typeof(ProductType_Attr))]
    public class ProductTypeAttrDto: EntityDto<Guid>, ICreationAudited
    {
        /// <summary>
        /// 属性名称
        /// </summary>
        [Display(Name = "属性名称")]
        public string AttrName { get; set; }
        /// <summary>
        /// 产品分类id
        /// </summary>
        [Display(Name = "产品分类编号")]
        public Guid ProductTypeid { get; set; }
        /// <summary>
        /// 数组形式逗号隔开红色，白色，绿色
        /// </summary>
        public string Attrvalue { get; set; }
        /// <summary>
        /// 单位（中文手动输入）
        /// </summary>
        [Display(Name = "单位")]
        public string Unit { get; set; }
        /// <summary>
        /// 是否可以查询
        /// </summary>
        [Display(Name = "是否可以查询")]
        public bool Issearch { get; set; } = true;
        /// <summary>
        /// 
        /// </summary>
        public long? CreatorUserId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreationTime { get; set; }
    }
}
